package com.ruoyi.passenger.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 乘客打车表对象 tb_passenger_car
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
public class TbPassengerCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long passengerId;

    /** 车辆名称 */
    @Excel(name = "车辆名称")
    private String carName;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carBh;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 打车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "打车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date carTime;

    public void setPassengerId(Long passengerId) 
    {
        this.passengerId = passengerId;
    }

    public Long getPassengerId() 
    {
        return passengerId;
    }

    public void setCarName(String carName) 
    {
        this.carName = carName;
    }

    public String getCarName() 
    {
        return carName;
    }

    public void setCarBh(String carBh) 
    {
        this.carBh = carBh;
    }

    public String getCarBh() 
    {
        return carBh;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setCarTime(Date carTime) 
    {
        this.carTime = carTime;
    }

    public Date getCarTime() 
    {
        return carTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("passengerId", getPassengerId())
            .append("carName", getCarName())
            .append("carBh", getCarBh())
            .append("price", getPrice())
            .append("carTime", getCarTime())
            .toString();
    }
}
